﻿using System.Collections.Generic;
using System.Management;
using System.Net;
using System.Text.RegularExpressions;
using System.Windows;
namespace SmtpTestServer.UI
{
	/// <summary>
	/// Interaction logic for OptionsWindow.xaml
	/// </summary>
	public partial class OptionsWindow : Window
	{
		public OptionsWindow()
		{
			InitializeComponent();
						
			startMinimized.IsChecked = Properties.Settings.Default.StartMinimized;
		}

		private void saveButton_Click(object sender, RoutedEventArgs e)
		{
			if(startMinimized.IsChecked.HasValue)
				Properties.Settings.Default.StartMinimized = startMinimized.IsChecked.Value;
			Properties.Settings.Default.Save();
			DialogResult = true;
		}

		private void cancelButton_Click(object sender, RoutedEventArgs e)
		{
			DialogResult = false;
		}
	}
}